<template>
  <div class="container">
    <!-- <img class="logo" alt="Vue logo" src="./assets/logo2.png" />
    <HelloWorld msg="广电网络活动后台" /> -->


    <router-view v-slot="{ Component }">
      <transition name="fade" >
        <component :is="Component" />
      </transition>
    </router-view>

    <!-- <router-view v-slot="{ Component }">
      <transition name="fade" mode="out-in">
          <component :is="Component"/>
      </transition>
    </router-view> -->


    <!-- <van-tabbar v-model="active" route>
      <van-tabbar-item replace :to="mainRoute" icon="home-o">预约录入</van-tabbar-item>
      <van-tabbar-item replace to="/random-img" icon="calendar-o">时间线</van-tabbar-item>
    </van-tabbar> -->
  </div>
</template>

<script setup>
  import HelloWorld from './components/HelloWorld.vue'
  import { ref, computed } from 'vue'
  import { useStore } from 'vuex'

  let active = ref(0)
  const { state, getters, commit, dispatch } = useStore()
  let mainRoute = computed(()=>getters['User/getMainRoute'])

</script>

<style lang="scss">
  #app {
    text-align: center;
  }

  .logo {
    width: 100px;
    border-radius: 40rpx;
    margin-top: 100px;
  }
  .fade-enter-active,
.fade-leave-active {
  transition: opacity 0.4s ease;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

</style>